home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
misc
/
prnf246.zip
/
XXX.HDR
< prev
Wrap
Text File
|
1993-05-01
|
7KB
|
116 lines
This is a sample header file. Normally, of course, you don't fill one
with extra blank lines and all manner of uninstructive commentary. Nev-
ertheless, this is a working header file. Change its name to PAGINA.HDR,
or just ask Pagina to use XXX.HDR, and the commands below will do their
job. Try it and see. It's all explained in the DOC.
{.H2C Printed: .Pt, .Pd} <- Time & Date of printout in center of 2nd line
{.H1L File name: .Fn} {.H1R Written: .Ft on .Fd} <-Note: 2 commands can
be on the same line. Note also that the order of the commands need not
match the order of the lines.
{.H2L Copied Right .Id} <--An ornament for line 2 of page 1. If
somewhere on the DOS path, you have a file
called PXL.ID with your name (or whatever)
in it, PAGINA will find it and put it here.
{.H2R Reg. Penna. Dept. Agr.} <--another ornament.
Yet more ornaments for page 1 ---> {.H3L Ms. Patricia Pending}
(Note they can be anywhere in the line) {.H3R Not kosher for Passover}
{.H2N} {.H3N} <--These cancel the line 2 & line 3 header ornaments above,
but only for pages after 1. First spec for a given segment
is used in first page. 2nd spec for the segment won't be
used until 2nd page. Subsequent specs in the header file
will wipe out previous ones for page 2 et seq. Thus:
{.H1R Yoo hoo!} <--This changes the right side (only) of the first line but,
again, only for pages after the first. Unless you delete
the NEXT command, however, you'll never see this one, be-
cause:
{.H1R Page #} <--This changes the right side of the 1st line again. It
won't do anything to the first page, but it will intercept
"Yoo hoo!" and keep it off the later pages.
But I can't resist "Yoo hoo!", so let's put it in the page one footer with
the command {.F2C Yoo hoo!}. It will go into the center of the second
footer line, which of course forces an extra blank line between it and the
text. But, we mustn't overdo this familiarity, so let's use {.F2C} to keep
it off subsequent pages. Ah, but that'll also kill the extra blank line(s),
so we'll put in {.F2C } to make a blank segment instead of an empty one
(can- celling the F2C} but not the F2C Yoo Hoo!}). This will have a side
effect. Use this for a header file and paginate a file that ends somewhere
in the middle of the page:
PAGINA filename XXX.PRN XXX.HDR
Then, examine the output file, XXX.PRN, you'll find that it has blank lines
all the way down the second page to fill it out to that invisible footer.
Note: From this point on, I'll put a blank right after the {. to
keep my examples inoperative. To see what they do, delete
the blank.
Suppose you want to print on both sides of the page. Start by running
Countpgs on your file to see what you have. Say the file has a width of 75
characters, and a margin of 3. That would print skimpily in 80 columns, but
it would look better in elite type that makes a 96-column line. It's more
convenient to get rid of the 3 column margin (with Mangler). Now we have
lines of 72 columns. 96 - 72 = 24, so we can afford, left margins of 14,
slightly more than an inch. Use the instruction {. HM14,72,96} to tell
Pagina you want 14 columns of left margin (on odd pages, it'll be right
margin on even pages), your text is 72 columns wide, and the printer will
fit 96 columns in a line; then put {. HA} to tell Pagina to alternate
headers left and right. You'll get a file all set up with suitable headers
for Prn2Both to divide up into even and odd page files for printing.
Now suppose the file has a title page. It shouldn't be counted in the num-
bering and it needs a blank page after it to make the 1st page of text come
out on the right side. {. HBPA1} is an instruction to put one extra blank
page (just a FF) after page 1. So the page you want numbered "1" now has
TWO pages in front of it. {. HUP2} calls for 2 Unnumbered Pages at the
start.
If you'd like to make a more or less permanent HDR file instead of contin-
ually editing it, you can use instructions that begin with {. followed by U
to make Pagina ask you to fill it in on the fly at run time. You can give
it a default and an explanatory label:
{. U "{. HM14/72/96} {. HA}"[alt pgs elite font for text 72 cols wide]}
When Pagina begins to run, you'll be asked to enter a User's String. Pagina
will display the text in [square brackets] below the text entry line. The
part in "double quotes" would appear as text already entered. You can just
press <Enter> to accept that instruction or edit it to suit. Anything that
can be entered in a header file can be entered in such a line.
If you merely want a little text to go into one or more header segments, IN
the segment, in the place you want the last-minute text to to, put .Us
("User string"). It can have a "suggested default" and/or a [descriptive
label]. You get to supply text for .Us instructions only once --that is,
however many segments you put .Us in, you'll be asked for text only once
and that text will go in all the places you've put a .Us symbol. There's
no such limit on .U lines; you can have as many as you like. (But don't
overdo it. You'll have to enter something for each of them every time you
use that header file.)
Notice that in a header file everything NOT in braces is a comment. You
can have things in {braces}, too so long as they don't start with the
.H symbol right after the opening brace. You'll notice that I have to
pussyfoot in order to avoid actually putting a header instruction into
this paragraph by mistake.
Here's a stinker: {. HP22} If you activate this instructions (delete the
space, this command will set Pagina laying out 22 lines per page. HP
makes no distinction between "1st" and "subsequent" pages. If you put
more than one HP command in a header file, only the last one will have
effect.
Finally: {. @FILETOP.TXT} would (if you delete the space) search the current
directory and then the whole DOS path for a file named FILETOP.TXT. If
found, the entire text of FILETOP.TXT would be inserted into the header
after whatever { .H } items have been heretofore specified.